<?php
/*
 * 首页
 */

if (!defined('IN_SEXMALL')){
	die('Hacking attempt');
}


$act = !empty($_GET['act']) ? $_GET['act'] : '';
$step = !empty($_GET['step']) ? $_GET['step'] : '';


$now = local_time();

$cache_id = sprintf('%X', crc32(__FILE__));
if (!$smarty->is_cached('index.dwt', $cache_id))
{
	// 获取用户浏览COOKIE
	$show = wap_getcookie("WAP[show]");
	$show = intval($show) ? intval($show) : 2;


	$data = get_schedule();

	//var_dump($data);

	$category = get_category();

	//var_dump($category);

	$smarty->assign('data', 				$data);
	$smarty->assign('category', 			$category);
	$smarty->assign('show', 				$show);
}

$smarty->display('index.dwt');
?>